﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;

public class Slime : Enemy
{
    Vector3 size;

    private void Start()
    {
        size = transform.localScale;
    }

    private void OnDestroy()
    {
        if (size.y > 0.4f)
            InstanceManager.Instance.InstanceDivision(transform.position, size * 0.5f, "Slime", 4, 3, 0.5f);
    }
}
